﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SO.Utilities.ActiveDirectory
{
    public class ADUser
    {
        private string _samAccountName;
        private string _cn;
        private string _displayName;
        private string _dn;
        private string _givenName;
        private string _name;
        private string _sn;
        private int _userAccountControl;
        private string _userPrincipalName;
        private string _mail;
        
        public string sAMAccountName
        {
            get { return _samAccountName; }
            set { _samAccountName = value; }
        }

        public string CN
        {
            get { return _cn; }
            set { _cn = value; }
        }

        public string DisplayName
        {
            get { return _displayName; }
            set { _displayName = value; }
        }

        public string DN
        {
            get { return _dn; }
            set { _dn = value; }
        }

        public string GivenName
        {
            get { return _givenName; }
            set { _givenName = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string SN
        {
            get { return _sn; }
            set { _sn = value; }
        }

        public int UserAccountControl
        {
            get { return _userAccountControl; }
            set { _userAccountControl = value; }
        }

        public string UserPrincipalName
        {
            get { return _userPrincipalName; }
            set { _userPrincipalName = value; }
        }

        public string Mail
        {
            get { return _mail; }
            set { _mail = value; }
        }

        public bool Active
        {
            get { return (_userAccountControl != 514); }
        }
    }
}
